package cn.iocoder.yudao.module.test.listener.bpmPurchaseOrderDemo;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

/**
 * @Author cjc
 * @Date 2024/1/12 11:50
 * @Description: 订单类型=2的 执行开始监听器
 * @Version 1.0
 */
@Component
@Slf4j
public class OrderTypeTwoStartListener implements ExecutionListener {

    @Override
    public void notify(DelegateExecution delegateExecution) {

        String variable = String.valueOf(delegateExecution.getVariable("resultStatus"));
        String reason = String.valueOf(delegateExecution.getVariable("reason"));
        String url = String.valueOf(delegateExecution.getVariable("url"));
        System.out.println(delegateExecution);
    }

}
